import http from '@/utils/request'

//获取消息列表
export const messageList = (from: number,to: number) => {
    return http.request({
        url: '/api/v1/front/message/list?from=' + from + '&to=' + to,
        method: 'get',
        // params: {from: from, to: to},
        headers: {
            'Content-Type': 'application/json'
        }
    })
}

//是否有消息
export const noReadMessageCount = (memberId:any) => {
    return http.request({
        url: '/api/v1/front/message/noReadMessageCount',
        method: 'get',
        params: memberId,
        headers: {
            'Content-Type': 'application/json'
        }
    })
}

//发消息成员列表
export const messageMembers = (memberId:any) => {
    return http.request({
        url: '/api/v1/front/message/messageMembers',
        method: 'get',
        params: memberId,
        headers: {
            'Content-Type': 'application/json'
        }
    })
}